package com.cn.hu.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * UserRuleMenu entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "user_rule_menu", catalog = "huarui")
public class UserRuleMenu implements java.io.Serializable {

	// Fields

	private Integer id;
	private String menuName;
	private String menuCode;
	private String menuLink;
	private String icon;
	private Timestamp createDate;
	private String bak;

	// Constructors

	/** default constructor */
	public UserRuleMenu() {
	}

	/** minimal constructor */
	public UserRuleMenu(Timestamp createDate) {
		this.createDate = createDate;
	}

	/** full constructor */
	public UserRuleMenu(String menuName, String menuCode, String menuLink,
			String icon, Timestamp createDate, String bak) {
		this.menuName = menuName;
		this.menuCode = menuCode;
		this.menuLink = menuLink;
		this.icon = icon;
		this.createDate = createDate;
		this.bak = bak;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "menu_name", length = 50)
	public String getMenuName() {
		return this.menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	@Column(name = "menu_code", length = 50)
	public String getMenuCode() {
		return this.menuCode;
	}

	public void setMenuCode(String menuCode) {
		this.menuCode = menuCode;
	}

	@Column(name = "menu_link", length = 100)
	public String getMenuLink() {
		return this.menuLink;
	}

	public void setMenuLink(String menuLink) {
		this.menuLink = menuLink;
	}

	@Column(name = "icon", length = 100)
	public String getIcon() {
		return this.icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	@Column(name = "create_date", nullable = false, length = 19)
	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	@Column(name = "bak", length = 100)
	public String getBak() {
		return this.bak;
	}

	public void setBak(String bak) {
		this.bak = bak;
	}

}